package day5;

import java.util.Arrays;
import java.util.Random;

/**
 * @author oldliu
 * @since 1.0
 */
public class RandomTest {
    public static void main(String[] args) {
        Random r=new Random();
        for(int i=1;i<=20;i++){
            System.out.println(r.nextInt());
        }
        byte []b=new byte[30];
        r.nextBytes(b);
        System.out.println(Arrays.toString(b));
        r.nextBytes(b);
        System.out.println(Arrays.toString(b));
    }
}
